﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExcelUtilities.Data
{
    /// <summary>
    /// 表数据集合类型
    /// </summary>
    public class TableDataSet : Bag<TableData>
    {
        /// <summary>
        /// 获取表数据
        /// </summary>
        /// <param name="name">表名称</param>
        /// <returns></returns>
        public TableData this[string name]
        {
            get
            {
                return this.SingleOrDefault(m => m.Name == name);
            }
        }
    }
}